import request from '../../utils/request';

export const fetchPageList = (query) => {
    return request({
        url: '/bbs/subject/page',
        method: 'post',
        data: query
    })
}

export const addSubject = (query) => {
    return request({
        url: '/bbs/subject/save',
        method: 'post',
        data: query
    })
}

export const getDetails = (query) => {
    return request({
        url: '/bbs/subject/details',
        method: 'post',
        data: query
    })
}

export const updateSubject = (query) => {
    return request({
        url: '/bbs/subject/update',
        method: 'post',
        data: query
    })
}

export const deleteSubject = (query) => {
    return request({
        url: '/bbs/subject/delete',
        method: 'post',
        data: query
    })
}
